export default {
  state: () => {
    return {
      showLeft: true, // 是否展示左侧导航
      activeName: '', // 选中的高亮路由
    }
  },
  mutations: {
    setNavParam(state, data = {}) {
      for (const key in data) {
        if (data[ key ] !== undefined) {
          state[ key ] = data[ key ]
        }
      }
    }
  }
}
